﻿using Castle.MicroKernel.Registration;
using System.Reflection;
using Castle.Facilities.Startable;

namespace Inovout.Business
{
    public class FunctionInstaller : ComponentInstaller
    {
        public override void Register(Assembly assembly)
        {
            Container.Register(
            AllTypes.FromAssembly(assembly)
            .BasedOn<FunctionGroup>().Configure(c=>c.Start())
            );

        }
    }
}
